package com.wkbb.common.redis;

import lombok.extern.slf4j.Slf4j;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;
import javax.annotation.Resource;


/**
 * 封装redis操作接口
 *
 * @author wuxq
 */
@Component
@Slf4j
public class UserRedisTemplateUtil extends RedisTemplateUtil {

    @Resource
    private RedisTemplate<String, Object> template2;

    @PostConstruct
    public void init(){
        super.redisTemplate = template2;
    }

}
